package com.yanqu.road.entity.activity.jiuzhou.game;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * 战斗记录
 */
@FieldTypeAnnotation(tableName = "t_c_jiu_zhou_game_round_record")
public class CrossJiuZhouGameRoundRecordData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "房间id", update = true)
    private int roomId;

    @FieldTypeAnnotation(desc = "轮次")
    private int round;

    @FieldTypeAnnotation(desc = "场次")
    private int gameRound;

    @FieldTypeAnnotation(desc = "玩家1")
    private CrossJiuZhouGameRoundRecordUserData user1;

    @FieldTypeAnnotation(desc = "玩家2")
    private CrossJiuZhouGameRoundRecordUserData user2;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        if (this.round != round) {
            this.round = round;
            setOp(DataStatus.Update);
        }
    }

    public int getRoomId() {
        return roomId;
    }

    public void setRoomId(int roomId) {
        if (this.roomId != roomId) {
            this.roomId = roomId;
            setOp(DataStatus.Update);
        }
    }

    public int getGameRound() {
        return gameRound;
    }

    public void setGameRound(int gameRound) {
        if (this.gameRound != gameRound) {
            this.gameRound = gameRound;
            setOp(DataStatus.Update);
        }
    }

    public CrossJiuZhouGameRoundRecordUserData getUser1() {
        return user1;
    }

    public void setUser1(CrossJiuZhouGameRoundRecordUserData user1) {
        if (user1 == null) {
            return;
        }
        this.user1 = user1;
        setOp(DataStatus.Update);
    }

    public CrossJiuZhouGameRoundRecordUserData getUser2() {
        return user2;
    }

    public void setUser2(CrossJiuZhouGameRoundRecordUserData user2) {
        if (user2 == null) {
            return;
        }
        this.user2 = user2;
        setOp(DataStatus.Update);
    }
}
